<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<body>
     <form action="calc/method" method="post">
        <h1>计算器</h1>
        数字1: <input name="num1" type="text"><br>
        数字2: <input name="num2" type="text"><br>、
        
        <!--name将select中的内容传给后端-->
        <select name = "method">
            <option select = "selected">+</option>
            <option>-</option>
            <option>*</option>
            <option>/</option>
        </select>
        <input type="submit" value=" 进行计算 ">
    </form>
</body>

</html>